package cn.ruituo.adv4;

import java.io.*;
import java.io.FileOutputStream;

public class FileOutputTest {
    public static void main(String[] args) {
        try {
            FileOutputStream f=new FileOutputStream("E:\\temp\\java72-java/java72yuekao成绩.txt");
            //f.write(10000);
            f.write(97);
            f.write(65);
            f.write(66);
            f.write(67);
            f.write("卢生是个大帅哥".getBytes());
            f.flush();
            f.close();//有问题，finally
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
